package com.gupao.ldr.pattern.observer.guavaapi;


public class ObserverTest2 {

    public static void main(String[] args) {
        GPer g=GPer.getInstance();
        Teacher tom = new Teacher("tom");
        Teacher marke = new Teacher("marke");
        g.register(tom);
        g.register(marke);

        com.gupao.ldr.pattern.observer.guavaapi.Question question=new Question();
        question.setUserName("张三");
        question.setContent("思考并总结装饰者模式和适配器模式的根本区别");

        g.publish(question);

    }


}
